import { request } from '../request'
export default {
  API_NEWS_INDEX_POST(params = {}) {
    // code=${data.code}&nickname=${data.nickName}&avatar=${data.avatarUrl}&phone=${data.phone}
    return request({
      url: `/api/news/index`,
      method: 'post',
      data: params
    })
  },
  API_NEWS_DETAIL_POST(params = {}) {
    return request({
      url: `/api/news/detail`,
      method: 'post',
      data : params
    })
  },
  API_NEWS_CUSTOMER_GET(params = {}) {
    return request({
      url: `/api/index/customer`,
      method: 'get',
      params
    })
  }
}
